/*
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
 * All portions are Copyright (C) 2008-2014 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
*/
package com.mes.manufacture.data;

import com.mes.data.EmesDcAutocollectData;
import com.mes.data.EmesProcess;
import com.mes.data.EmesSize;
import com.mes.quality.data.EmesqQualityData;
import com.mes.quality.data.EmesqQualityOrderTable;
import com.mes.quality.data.EmesqQualityResult;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.openbravo.base.structure.ActiveEnabled;
import org.openbravo.base.structure.BaseOBObject;
import org.openbravo.base.structure.ClientEnabled;
import org.openbravo.base.structure.OrganizationEnabled;
import org.openbravo.base.structure.Traceable;
import org.openbravo.model.ad.access.User;
import org.openbravo.model.ad.system.Client;
import org.openbravo.model.common.enterprise.Organization;
import org.openbravo.model.common.plm.Product;
/**
 * Entity class for entity Emeso_Job_Order (stored in table Emeso_Job_Order).
 *
 * NOTE: This class should not be instantiated directly. To instantiate this
 * class the {@link org.openbravo.base.provider.OBProvider} should be used.
 */
public class EmesoJobOrder extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled {
    private static final long serialVersionUID = 1L;
    public static final String TABLE_NAME = "Emeso_Job_Order";
    public static final String ENTITY_NAME = "Emeso_Job_Order";
    public static final String PROPERTY_ID = "id";
    public static final String PROPERTY_CLIENT = "client";
    public static final String PROPERTY_ORGANIZATION = "organization";
    public static final String PROPERTY_ACTIVE = "active";
    public static final String PROPERTY_CREATIONDATE = "creationDate";
    public static final String PROPERTY_CREATEDBY = "createdBy";
    public static final String PROPERTY_UPDATED = "updated";
    public static final String PROPERTY_UPDATEDBY = "updatedBy";
    public static final String PROPERTY_EMESOMANUORDER = "emesoManuorder";
    public static final String PROPERTY_CODE = "code";
    public static final String PROPERTY_QTY = "qty";
    public static final String PROPERTY_QTYDONE = "qtyDone";
    public static final String PROPERTY_QTYGOOD = "qtyGood";
    public static final String PROPERTY_QTYERROR = "qtyError";
    public static final String PROPERTY_FINISH = "finish";
    public static final String PROPERTY_EXEDATEFROM = "exeDateFrom";
    public static final String PROPERTY_EXEDATETO = "exeDateTo";
    public static final String PROPERTY_STATUS = "status";
    public static final String PROPERTY_USER = "user";
    public static final String PROPERTY_EXETIME = "exeTime";
    public static final String PROPERTY_QUALITYBTN = "qualityBtn";
    public static final String PROPERTY_QUALITYDATABTN = "qualityDataBtn";
    public static final String PROPERTY_QUALITYRESULT = "qualityResult";
    public static final String PROPERTY_QUALITY = "quality";
    public static final String PROPERTY_DESCRIPTION = "description";
    public static final String PROPERTY_EMESPROCESS = "emesProcess";
    public static final String PROPERTY_PRODUCT = "product";
    public static final String PROPERTY_FOOTLENGTH = "footLength";
    public static final String PROPERTY_FOOTWIDTH = "footWidth";
    public static final String PROPERTY_FOOTHEIGHT = "footHeight";
    public static final String PROPERTY_EMESSIZE = "emesSize";
    public static final String PROPERTY_TYPE = "type";
    public static final String PROPERTY_ASSIGNBTN = "assignBtn";
    public static final String PROPERTY_MATERIALBTN = "materialBtn";
    public static final String PROPERTY_PAIR = "pair";
    public static final String PROPERTY_MATERIAL = "material";
    public static final String PROPERTY_LEFTDADI = "leftDadi";
    public static final String PROPERTY_RIGHTDADI = "rightDadi";
    public static final String PROPERTY_LEFTXUANTOU = "leftXuantou";
    public static final String PROPERTY_RIGHTXUANTOU = "rightXuantou";
    public static final String PROPERTY_JOININSTORCK = "joinInStorck";
    public static final String PROPERTY_LOGISTICSCODE = "logisticsCode";
    public static final String PROPERTY_PRODUCTSTATUS = "productStatus";
    public static final String PROPERTY_EMESDCAUTOCOLLECTDATALIST = "emesDcAutocollectDataList";
    public static final String PROPERTY_EMESODCRESULTLIST = "emesoDCResultList";
    public static final String PROPERTY_EMESOJOBORDEREXELIST = "emesoJobOrderExeList";
    public static final String PROPERTY_EMESOJOBORDERMATERIALLIST = "emesoJobOrderMaterialList";
    public static final String PROPERTY_EMESOJOBUSERASSIGNLIST = "emesoJobUserAssignList";
    public static final String PROPERTY_EMESQQUALITYDATALIST = "emesqQualityDataList";
    public static final String PROPERTY_EMESQQUALITYORDERTABLELIST = "emesqQualityOrderTableList";
    public static final String PROPERTY_EMESQQUALITYRESULTLIST = "emesqQualityResultList";

    public EmesoJobOrder() {
        setDefaultValue(PROPERTY_ACTIVE, true);
        setDefaultValue(PROPERTY_FINISH, false);
        setDefaultValue(PROPERTY_QUALITYBTN, false);
        setDefaultValue(PROPERTY_QUALITYDATABTN, false);
        setDefaultValue(PROPERTY_QUALITY, false);
        setDefaultValue(PROPERTY_ASSIGNBTN, false);
        setDefaultValue(PROPERTY_MATERIALBTN, false);
        setDefaultValue(PROPERTY_PAIR, false);
        setDefaultValue(PROPERTY_MATERIAL, false);
        setDefaultValue(PROPERTY_JOININSTORCK, false);
        setDefaultValue(PROPERTY_EMESDCAUTOCOLLECTDATALIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESODCRESULTLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESOJOBORDEREXELIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESOJOBORDERMATERIALLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESOJOBUSERASSIGNLIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESQQUALITYDATALIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESQQUALITYORDERTABLELIST, new ArrayList<Object>());
        setDefaultValue(PROPERTY_EMESQQUALITYRESULTLIST, new ArrayList<Object>());
    }

    @Override
    public String getEntityName() {
        return ENTITY_NAME;
    }

    public String getId() {
        return (String) get(PROPERTY_ID);
    }

    public void setId(String id) {
        set(PROPERTY_ID, id);
    }

    public Client getClient() {
        return (Client) get(PROPERTY_CLIENT);
    }

    public void setClient(Client client) {
        set(PROPERTY_CLIENT, client);
    }

    public Organization getOrganization() {
        return (Organization) get(PROPERTY_ORGANIZATION);
    }

    public void setOrganization(Organization organization) {
        set(PROPERTY_ORGANIZATION, organization);
    }

    public Boolean isActive() {
        return (Boolean) get(PROPERTY_ACTIVE);
    }

    public void setActive(Boolean active) {
        set(PROPERTY_ACTIVE, active);
    }

    public Date getCreationDate() {
        return (Date) get(PROPERTY_CREATIONDATE);
    }

    public void setCreationDate(Date creationDate) {
        set(PROPERTY_CREATIONDATE, creationDate);
    }

    public User getCreatedBy() {
        return (User) get(PROPERTY_CREATEDBY);
    }

    public void setCreatedBy(User createdBy) {
        set(PROPERTY_CREATEDBY, createdBy);
    }

    public Date getUpdated() {
        return (Date) get(PROPERTY_UPDATED);
    }

    public void setUpdated(Date updated) {
        set(PROPERTY_UPDATED, updated);
    }

    public User getUpdatedBy() {
        return (User) get(PROPERTY_UPDATEDBY);
    }

    public void setUpdatedBy(User updatedBy) {
        set(PROPERTY_UPDATEDBY, updatedBy);
    }

    public EmesoManuOrder getEmesoManuorder() {
        return (EmesoManuOrder) get(PROPERTY_EMESOMANUORDER);
    }

    public void setEmesoManuorder(EmesoManuOrder emesoManuorder) {
        set(PROPERTY_EMESOMANUORDER, emesoManuorder);
    }

    public String getCode() {
        return (String) get(PROPERTY_CODE);
    }

    public void setCode(String code) {
        set(PROPERTY_CODE, code);
    }

    public Long getQty() {
        return (Long) get(PROPERTY_QTY);
    }

    public void setQty(Long qty) {
        set(PROPERTY_QTY, qty);
    }

    public Long getQtyDone() {
        return (Long) get(PROPERTY_QTYDONE);
    }

    public void setQtyDone(Long qtyDone) {
        set(PROPERTY_QTYDONE, qtyDone);
    }

    public Long getQtyGood() {
        return (Long) get(PROPERTY_QTYGOOD);
    }

    public void setQtyGood(Long qtyGood) {
        set(PROPERTY_QTYGOOD, qtyGood);
    }

    public Long getQtyError() {
        return (Long) get(PROPERTY_QTYERROR);
    }

    public void setQtyError(Long qtyError) {
        set(PROPERTY_QTYERROR, qtyError);
    }

    public Boolean isFinish() {
        return (Boolean) get(PROPERTY_FINISH);
    }

    public void setFinish(Boolean finish) {
        set(PROPERTY_FINISH, finish);
    }

    public Date getExeDateFrom() {
        return (Date) get(PROPERTY_EXEDATEFROM);
    }

    public void setExeDateFrom(Date exeDateFrom) {
        set(PROPERTY_EXEDATEFROM, exeDateFrom);
    }

    public Date getExeDateTo() {
        return (Date) get(PROPERTY_EXEDATETO);
    }

    public void setExeDateTo(Date exeDateTo) {
        set(PROPERTY_EXEDATETO, exeDateTo);
    }

    public String getStatus() {
        return (String) get(PROPERTY_STATUS);
    }

    public void setStatus(String status) {
        set(PROPERTY_STATUS, status);
    }

    public User getUser() {
        return (User) get(PROPERTY_USER);
    }

    public void setUser(User user) {
        set(PROPERTY_USER, user);
    }

    public BigDecimal getExeTime() {
        return (BigDecimal) get(PROPERTY_EXETIME);
    }

    public void setExeTime(BigDecimal exeTime) {
        set(PROPERTY_EXETIME, exeTime);
    }

    public Boolean isQualityBtn() {
        return (Boolean) get(PROPERTY_QUALITYBTN);
    }

    public void setQualityBtn(Boolean qualityBtn) {
        set(PROPERTY_QUALITYBTN, qualityBtn);
    }

    public Boolean isQualityDataBtn() {
        return (Boolean) get(PROPERTY_QUALITYDATABTN);
    }

    public void setQualityDataBtn(Boolean qualityDataBtn) {
        set(PROPERTY_QUALITYDATABTN, qualityDataBtn);
    }

    public String getQualityResult() {
        return (String) get(PROPERTY_QUALITYRESULT);
    }

    public void setQualityResult(String qualityResult) {
        set(PROPERTY_QUALITYRESULT, qualityResult);
    }

    public Boolean isQuality() {
        return (Boolean) get(PROPERTY_QUALITY);
    }

    public void setQuality(Boolean quality) {
        set(PROPERTY_QUALITY, quality);
    }

    public String getDescription() {
        return (String) get(PROPERTY_DESCRIPTION);
    }

    public void setDescription(String description) {
        set(PROPERTY_DESCRIPTION, description);
    }

    public EmesProcess getEmesProcess() {
        return (EmesProcess) get(PROPERTY_EMESPROCESS);
    }

    public void setEmesProcess(EmesProcess emesProcess) {
        set(PROPERTY_EMESPROCESS, emesProcess);
    }

    public Product getProduct() {
        return (Product) get(PROPERTY_PRODUCT);
    }

    public void setProduct(Product product) {
        set(PROPERTY_PRODUCT, product);
    }

    public BigDecimal getFootLength() {
        return (BigDecimal) get(PROPERTY_FOOTLENGTH);
    }

    public void setFootLength(BigDecimal footLength) {
        set(PROPERTY_FOOTLENGTH, footLength);
    }

    public BigDecimal getFootWidth() {
        return (BigDecimal) get(PROPERTY_FOOTWIDTH);
    }

    public void setFootWidth(BigDecimal footWidth) {
        set(PROPERTY_FOOTWIDTH, footWidth);
    }

    public BigDecimal getFootHeight() {
        return (BigDecimal) get(PROPERTY_FOOTHEIGHT);
    }

    public void setFootHeight(BigDecimal footHeight) {
        set(PROPERTY_FOOTHEIGHT, footHeight);
    }

    public EmesSize getEmesSize() {
        return (EmesSize) get(PROPERTY_EMESSIZE);
    }

    public void setEmesSize(EmesSize emesSize) {
        set(PROPERTY_EMESSIZE, emesSize);
    }

    public String getType() {
        return (String) get(PROPERTY_TYPE);
    }

    public void setType(String type) {
        set(PROPERTY_TYPE, type);
    }

    public Boolean isAssignBtn() {
        return (Boolean) get(PROPERTY_ASSIGNBTN);
    }

    public void setAssignBtn(Boolean assignBtn) {
        set(PROPERTY_ASSIGNBTN, assignBtn);
    }

    public Boolean isMaterialBtn() {
        return (Boolean) get(PROPERTY_MATERIALBTN);
    }

    public void setMaterialBtn(Boolean materialBtn) {
        set(PROPERTY_MATERIALBTN, materialBtn);
    }

    public Boolean isPair() {
        return (Boolean) get(PROPERTY_PAIR);
    }

    public void setPair(Boolean pair) {
        set(PROPERTY_PAIR, pair);
    }

    public Boolean isMaterial() {
        return (Boolean) get(PROPERTY_MATERIAL);
    }

    public void setMaterial(Boolean material) {
        set(PROPERTY_MATERIAL, material);
    }

    public String getLeftDadi() {
        return (String) get(PROPERTY_LEFTDADI);
    }

    public void setLeftDadi(String leftDadi) {
        set(PROPERTY_LEFTDADI, leftDadi);
    }

    public String getRightDadi() {
        return (String) get(PROPERTY_RIGHTDADI);
    }

    public void setRightDadi(String rightDadi) {
        set(PROPERTY_RIGHTDADI, rightDadi);
    }

    public String getLeftXuantou() {
        return (String) get(PROPERTY_LEFTXUANTOU);
    }

    public void setLeftXuantou(String leftXuantou) {
        set(PROPERTY_LEFTXUANTOU, leftXuantou);
    }

    public String getRightXuantou() {
        return (String) get(PROPERTY_RIGHTXUANTOU);
    }

    public void setRightXuantou(String rightXuantou) {
        set(PROPERTY_RIGHTXUANTOU, rightXuantou);
    }

    public Boolean isJoinInStorck() {
        return (Boolean) get(PROPERTY_JOININSTORCK);
    }

    public void setJoinInStorck(Boolean joinInStorck) {
        set(PROPERTY_JOININSTORCK, joinInStorck);
    }

    public String getLogisticsCode() {
        return (String) get(PROPERTY_LOGISTICSCODE);
    }

    public void setLogisticsCode(String logisticsCode) {
        set(PROPERTY_LOGISTICSCODE, logisticsCode);
    }

    public String getProductStatus() {
        return (String) get(PROPERTY_PRODUCTSTATUS);
    }

    public void setProductStatus(String productStatus) {
        set(PROPERTY_PRODUCTSTATUS, productStatus);
    }

    @SuppressWarnings("unchecked")
    public List<EmesDcAutocollectData> getEmesDcAutocollectDataList() {
      return (List<EmesDcAutocollectData>) get(PROPERTY_EMESDCAUTOCOLLECTDATALIST);
    }

    public void setEmesDcAutocollectDataList(List<EmesDcAutocollectData> emesDcAutocollectDataList) {
        set(PROPERTY_EMESDCAUTOCOLLECTDATALIST, emesDcAutocollectDataList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesoDataCollectionResult> getEmesoDCResultList() {
      return (List<EmesoDataCollectionResult>) get(PROPERTY_EMESODCRESULTLIST);
    }

    public void setEmesoDCResultList(List<EmesoDataCollectionResult> emesoDCResultList) {
        set(PROPERTY_EMESODCRESULTLIST, emesoDCResultList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesoJobOrderExe> getEmesoJobOrderExeList() {
      return (List<EmesoJobOrderExe>) get(PROPERTY_EMESOJOBORDEREXELIST);
    }

    public void setEmesoJobOrderExeList(List<EmesoJobOrderExe> emesoJobOrderExeList) {
        set(PROPERTY_EMESOJOBORDEREXELIST, emesoJobOrderExeList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesoJobOrderMaterial> getEmesoJobOrderMaterialList() {
      return (List<EmesoJobOrderMaterial>) get(PROPERTY_EMESOJOBORDERMATERIALLIST);
    }

    public void setEmesoJobOrderMaterialList(List<EmesoJobOrderMaterial> emesoJobOrderMaterialList) {
        set(PROPERTY_EMESOJOBORDERMATERIALLIST, emesoJobOrderMaterialList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesoJobUserAssign> getEmesoJobUserAssignList() {
      return (List<EmesoJobUserAssign>) get(PROPERTY_EMESOJOBUSERASSIGNLIST);
    }

    public void setEmesoJobUserAssignList(List<EmesoJobUserAssign> emesoJobUserAssignList) {
        set(PROPERTY_EMESOJOBUSERASSIGNLIST, emesoJobUserAssignList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesqQualityData> getEmesqQualityDataList() {
      return (List<EmesqQualityData>) get(PROPERTY_EMESQQUALITYDATALIST);
    }

    public void setEmesqQualityDataList(List<EmesqQualityData> emesqQualityDataList) {
        set(PROPERTY_EMESQQUALITYDATALIST, emesqQualityDataList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesqQualityOrderTable> getEmesqQualityOrderTableList() {
      return (List<EmesqQualityOrderTable>) get(PROPERTY_EMESQQUALITYORDERTABLELIST);
    }

    public void setEmesqQualityOrderTableList(List<EmesqQualityOrderTable> emesqQualityOrderTableList) {
        set(PROPERTY_EMESQQUALITYORDERTABLELIST, emesqQualityOrderTableList);
    }

    @SuppressWarnings("unchecked")
    public List<EmesqQualityResult> getEmesqQualityResultList() {
      return (List<EmesqQualityResult>) get(PROPERTY_EMESQQUALITYRESULTLIST);
    }

    public void setEmesqQualityResultList(List<EmesqQualityResult> emesqQualityResultList) {
        set(PROPERTY_EMESQQUALITYRESULTLIST, emesqQualityResultList);
    }

}
